/**
 * 配置
 * getUsers: { url:API_EPRS_RESOURCE_URL +  '/users', method: 'get', params: { pageSize: 10 } },
 * getUser: { url:API_EPRS_RESOURCE_URL +  '/user/:id', method: 'get' },
 * addUser: { url:API_EPRS_RESOURCE_URL +  '/user', method: 'post' },
 * deleteUser: { url:API_EPRS_RESOURCE_URL +  '/user/:id', method: 'delete' },
 * putUser: { url:API_EPRS_RESOURCE_URL +  '/user/:id', method: 'put' },
 *
 * 使用范例
 * api.getUsers({ pageNo: 0, pageSize: 10 })
 * api.getUser({ id: 10 })
 * api.addUser({ username: '雄黎明', ... })
 * api.deleteUser({ id: 10 })
 * api.putUser({ id: 10, username: '雄黎明', ... })
 *
 */
const API_MAJORHAZARD_URL = "/majorHazard"
export default {
    //========= 危险源基础信息 ==========
    getMajorHazardBasicInfoPageList: { url: API_MAJORHAZARD_URL + "/basicInfo/getPageList", method: "post" },
    getMajorHazardBasicInfoById: { url: API_MAJORHAZARD_URL + "/basicInfo/getBasicInfoById", method: "post" },
    insertMajorHazard: { url: API_MAJORHAZARD_URL + "/basicInfo/insert", method: "post" },
    exportMajorHazardBasicInfoExcel:{ url: API_MAJORHAZARD_URL + "/basicInfo/getAll", method: "post" },
    deleteMajorHazardBasicInfoByIds:{url:API_MAJORHAZARD_URL +"/basicInfo/deleteByIds/:ids", method: "delete" },
    dumpMajorHazard:{url:API_MAJORHAZARD_URL +"/basicInfo/dumpMajorHazard", method: "post" },

    //========= 危险物质列表 ==========
    insertMajorHazardMaterial: { url: API_MAJORHAZARD_URL + "/material/insert", method: "post" },
    updateMajorHazardMaterial: { url: API_MAJORHAZARD_URL + "/material/update", method: "post" },
    getMajorHazardMaterialById: { url: API_MAJORHAZARD_URL + "/material/getMaterial", method: "post" },
    getMajorHazardMaterialList: { url: API_MAJORHAZARD_URL + "/material/getList", method: "post" },
    deleteMaterialByIds: { url: API_MAJORHAZARD_URL + "/material/deleteByIds/:ids", method: "delete" },

    //========= 备案申请表 ==========
    getMajorHazardRegisterInfoById: { url: API_MAJORHAZARD_URL + "/registerInfo/getRegisterInfoById", method: "post" },

    //========= 备案材料清单 ==========
    generateIdForRegisterFile: { url: API_MAJORHAZARD_URL + "/registerFile/generateId", method: "post" },
    getRegisterFileByInfoId: { url: API_MAJORHAZARD_URL + "/registerFile/getRegisterFileByInfoId", method: "post"},
    deleteRegisterFile: { url: API_MAJORHAZARD_URL + "/registerFile/deleteRegisterFile", method: "post"},

    //========= 历史申请记录 ==========
    getHistoryRegisterRecords: { url: API_MAJORHAZARD_URL + "/basicInfo/getHistoryRegisterRecords", method: "post" },

    //========= 流程查看 ==========
    getMajorHazardRegisterRecords: { url: API_MAJORHAZARD_URL + "/registerRecord/getMajorHazardRegisterRecords", method: "post" },

};
